<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<css file="__PUBLIC__/css/category.css" />
    <jquery />
    <jsconst />
    <js file="__PUBLIC__/js/category.js" />
</head>
<body>

		<h2>
            <a href="{|U('addshow')}">添加顶级栏目</a>
        </h2>
         <h3><a href="javascript:void(0)" class="catreload">重新载入所有栏目</a></h3>
        

        <table class="table1">
            <thead>
                <tr style="background:#72A9D3">
                    <th width="10">CID</th>
                    <th>栏目名称</th>
                    <th  width="360">操作</th>
                </tr>
            </thead>
            <tbody>
                <list from="$data" name="n">
                <tr class="catgorylist">
                    <td>{$n.cid}</td>
                    <td><if value="$n.level!=0">|</if>{$n.html}{$n.catname}</td>
                    <td>
                        <a href="__ROOT__/index.php?c=index&m=cat&cid={$n.cid}" target="_blank">预览</a> |
                        <a href="__CONTROL__/addShow/pid/{$n.cid}/path/{$n.path}_{$n.cid}">添加子栏目</a> |
                        <a href="{|U('editShow',array('cid'=>$n['cid']))}">编辑</a> |
                        <if value="{$n.issend}==1">
                            <a href="{|U('arc/addShow',array('cid'=>$n['cid']))}">添加文章</a> |
                        </if>
                        <a href="javascript:void(0)" class="delcategory" cid="{$n.cid}">删除栏目</a>
                    </td>
                </tr>
                </list>
            </tbody>
        </table>
</body>
</html>